package com.river.boot.biz.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 店铺管理视图对象
 *
 * @author JiangCheng Xiang
 * @since 2025-04-24 11:56
 */
@Getter
@Setter
@Schema(description = "店铺管理视图对象")
public class ShopVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "店铺ID")
    private Long id;
    @Schema(description = "关联商家用户ID")
    private Long userId;
    @Schema(description = "店铺名称")
    private String name;
    @Schema(description = "店铺LOGO")
    private String logo;
    @Schema(description = "店铺描述")
    private String description;
    @Schema(description = "店铺详细地址")
    private String address;
    @Schema(description = "经度")
    private BigDecimal longitude;
    @Schema(description = "纬度")
    private BigDecimal latitude;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "营业时间，如09:00-21:00")
    private String businessHours;
    @Schema(description = "营业状态")
    private Integer status;
    @Schema(description = "配送费")
    private BigDecimal deliveryFee;
    @Schema(description = "起送金额")
    private BigDecimal minOrderAmount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
